import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 三级联动组件
import TypeNav from '../src/components/TypeNav/index.vue'
Vue.component(TypeNav.name, TypeNav)
// 轮播图全局组件
import Carousel from '../src/components/Carousel/index.vue'
Vue.component(Carousel.name, Carousel)


// 引入mock模拟数据
import '../src/mock/mockServe'
// 引入swiper样式
import "swiper/css/swiper.css"
Vue.config.productionTip = false
import {
  reqCategoryList
} from './api/index'
reqCategoryList()
new Vue({
  router,
  store,
  render: h => h(App),
  // 配置全局事件总线
  beforeCreate() {
    Vue.prototype.$bus = this
  },
}).$mount('#app')